PHP Quick Scripting Reference by Mikael Olsson

PHP Quick Scripting Reference by Mikael Olsson

Author:Mikael Olsson [Olsson, Mikael]
Language: eng
Format: epub, pdf
Tags: Computers, Programming Languages, Web, Web Programming, Php
ISBN: 9781430262831
Publisher: Apress
Published: 2013-08-14T04:00:00+00:00


Name Description

__LINE__ Current line number of the file.

__FILE__ Full path and filename of the file.

__DIR__ Directory of the file.

__FUNCTION__ Function name.

__CLASS__ Class name including namespace.

__TRAIT__ Trait name including namespace.

__METHOD__ Class method name.

__NAMESPACE__ Current namespace.

Magic constants are especially useful for debugging purposes. For example, the value of __LINE__ depends on the line on which it appears in the script.

if(!isset($var))

{

echo '$var not set on line ' . __LINE__;

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.